package com.example.qxfw.dataBaseManager.nyzjk.service;

import com.example.qxfw.common.entity.ny.CropDistIndex;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/************************************
 *
 * @author : HuangDeYin Jolly
 * @since : JDK 11
 * @Date : 2023/7/5  星期三   11:03
 * @description : 此类用来 病虫害指标库
 ***************************************/
public interface DiseaseAndPestPredictionService {

    List<CropDistIndex> selectByCropName();

    List<CropDistIndex> getCropDistIndex();

    List<CropDistIndex> selectByCropNameAndDisdesesName(@Param("cropName") String cropName, @Param("DiseasesName") String DiseasesName);

    List<CropDistIndex> selectByStartTimeAndEndTime(@Param("startTime") String startTime, @Param("endTime") String endTime);

    List<CropDistIndex> selectByCropNameAndDisdesesNameNoOrder(@Param("cropName") String cropName, @Param("DiseasesName") String DiseasesName);

    Integer insertCropDistIndex(@Param("cropDistIndex") CropDistIndex cropDistIndex);

    Integer deleteByCropNameAndDisdesesName(@Param("cropName") String cropName, @Param("diseasesName") String diseasesName);

    Integer updateByCropNameAndDisdesesName(@Param("cropDistIndex") CropDistIndex cropDistIndex);

    Integer clearCropDistIndex();

    List<CropDistIndex> selectAll();
}
